public class WhileLoopEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		int[] marks = { 10, 20, 11, 13, 15, 20, 16, 11, 23, 22, 17, 20 };

		int count = 30;

		while (count < marks.length) {

			System.out.println(" Value at position + " + count + "  is :"
					+ marks[count]);
			count++;

		}
		
		 
		count = 30;

		do {

			System.out.println("This Stament Executes only Once");
			count++;

		} while (count < marks.length);

		
		
		
		for (int i = 0; i < marks.length; i++) {

			System.out.println("From For loop   " + i + "   Value is :"
					+ marks[i]);

			 
			
		}

	}

}
